package br.com.consignum;

import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Date;

public class StringTester {  
	  
    public static void main(String[] args) {  
  
        //DateFormat format = new SimpleDateFormat("ss");  
          
       // System.out.println(StringUtils.lpad("109", '0', 10));  
    	
        System.out.println(StringUtils.lpadS("109", "0", 10));  
    }  
      
}  
  
class StringUtils {     
    public static String lpadS(String valueToPad, String filler, int size) {  
        StringBuilder builder = new StringBuilder();  
                  
        while (builder.length() + valueToPad.length() < size) {  
            builder.append(filler);  
        }  
        builder.append(valueToPad);  
        return builder.toString();  
    }  

} 